import request from '@/utils/request'

// 查询巡逻表列表
export function listPatroll(query) {
  return request({
    url: '/zy_patroll/patroll/list',
    method: 'get',
    params: query
  })
}

// 查询巡逻表详细
export function getPatroll(id) {
  return request({
    url: '/zy_patroll/patroll/' + id,
    method: 'get'
  })
}

// 新增巡逻表
export function addPatroll(data) {
  return request({
    url: '/zy_patroll/patroll',
    method: 'post',
    data: data
  })
}

// 修改巡逻表
export function updatePatroll(data) {
  return request({
    url: '/zy_patroll/patroll',
    method: 'put',
    data: data
  })
}

// 删除巡逻表
export function delPatroll(id) {
  return request({
    url: '/zy_patroll/patroll/' + id,
    method: 'delete'
  })
}
